﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Torimi.Wiki.Web.ContentManagement
{
	public partial class SearchWikiPage : System.Web.UI.UserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

		protected void btnSearch_Click(object sender, EventArgs e)
		{
			var searchResults = Services.WikiInstance.Search(txtSearch.Text, 0, int.MaxValue, null);
			grdResults.DataSource = searchResults;
			grdResults.DataBind();
		}
	}
}